'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    const title = 'admin123';
    const title2 = 'admin456';
    await ctx.render('index.html', { title, title2 });
  }

  async main() {
    const { ctx } = this;
    await ctx.render('main.html');
  }
}

module.exports = HomeController;
